package com.callback2;

public class Http {
	Icallback mIcallback;

	public void init(Icallback icallback) {
		this.mIcallback = icallback;
	}

	public void doWork() {
		succ("dowork");
		System.out.println("public void doWork()");
	};

	public void succ(String s) {
		mIcallback.succ(s);
		System.out.println("public void succ()");

	}

	public void fail() {
		mIcallback.fail();

	}

}
